﻿using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Media;
using System.Diagnostics;
using System.Threading;
using ALDIOrganizer.Properties;

namespace ALDIOrganizer
{
    public partial class MainForm
    {
        internal void ErrorNoticeInvalidDataFileFormat()
        {
            MessageBox.Show(
                Resources.MESSAGEBOX_ERROR_InvalidFileFormat_MESSAGE,
                Resources.MESSAGEBOX_ERROR_InvalidFileFormat_CAPTION,
                MessageBoxButtons.OK,
                MessageBoxIcon.Error);
        }

        internal void ErrorNoticeInvalidSQLiteDatabaseFormat()
        {
            MessageBox.Show(
                Resources.MESSAGEBOX_ERROR_InvalidSQLDbFormat_MESSAGE,
                Resources.MESSAGEBOX_ERROR_InvalidSQLDbFormat_CAPTION,
                MessageBoxButtons.OK,
                MessageBoxIcon.Error);
        }

        internal void ErrorNoticeFileSaving(Exception pException)
        {
            var message = Resources.MESSAGEBOX_ERROR_SavingFileError_MESSAGE.Replace(
                "#",
                Program.CurrentFile.FileNameNoPath).Replace("$",
                pException.Message);
            MessageBox.Show(
                message,
                Resources.MESSAGEBOX_ERROR_SavingFileError_CAPTION,
                MessageBoxButtons.OK,
                MessageBoxIcon.Error);
        }
    }
}
